﻿@{
    ViewBag.Title = "ChaMessenger";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section Head{
    <script type="text/javascript">
        $(function () {
            $.globalMessenger().post({
                message: 'There was an explosion while processing your request.',
                type: 'error',
                showCloseButton: true
            });


            $("#execut").click(function () {
                var msg;

                msg = $.globalMessenger().post({
                    message: "I'm sorry Hal, I just can't do that.",
                    actions: {
                        retry: {
                            label: 'retry now',
                            phrase: 'Retrying TIME',
                            auto: true,
                            delay: 10,
                            action: function () { }
                        },
                        cancel: {
                            action: function () {
                                return msg.cancel();
                            }
                        }
                    }
                });
            });
        })

    </script>
}
<div class="controls">
    <h2>
        ChaMessenger</h2>
        <a href="http://www.bootcss.com/p/messenger/" target="_blank" >链接原站点</a>
        <pre>
    <code>
        <output>试试</output>
    </code>
    <button id="execut" >
        RUN</button>
</pre>
</div>
